import request from '@/utils/request'
export default {
  // 获取分页轮播图
  getBannerList(page,limit){
    return request({
      url:`/educms/admin/banner/pageBanner/${page}/${limit}`,
      method:'get'
    })
  },
  // 根据 id 删除轮播图
  deleteBannerById(id){
    return request({
      url:`/educms/admin/banner/remove/${id}`,
      method:'delete'
    })
  },

  // 根据 id 修改轮播图
  updateBannerById(banner){
    return request({
      url:`/educms/admin/banner/update`,
      method:'put',
      data: banner
    })
  },
  // 根据 id 查询轮播图
  getBannerById(id){
    return request({
      url:`/educms/admin/banner/get/${id}`,
      method:'get'
    })
  },

}
